import request from '@/utils/request'

// 查询掘进月计划列表
export function listDrivingMonthPlan(query) {
  return request({
    url: '/dispatch/drivingMonthPlan/list',
    method: 'get',
    params: query
  })
}

// 查询掘进月计划详细
export function getDrivingMonthPlan(drivingMonthPlanId) {
  return request({
    url: '/dispatch/drivingMonthPlan/' + drivingMonthPlanId,
    method: 'get'
  })
}

// 新增掘进月计划
export function addDrivingMonthPlan(data) {
  return request({
    url: '/dispatch/drivingMonthPlan',
    method: 'post',
    data: data
  })
}

// 修改掘进月计划
export function updateDrivingMonthPlan(data) {
  return request({
    url: '/dispatch/drivingMonthPlan',
    method: 'put',
    data: data
  })
}

// 删除掘进月计划
export function delDrivingMonthPlan(drivingMonthPlanId) {
  return request({
    url: '/dispatch/drivingMonthPlan/' + drivingMonthPlanId,
    method: 'delete'
  })
}
